package com.xy.service;

import java.io.IOException;
import java.io.InputStream;

/**
 * Created by XiuYang on 2016/11/22.
 */
public interface UploadService {
    /**
     * 上传图片,同时生成小图
     * @param inputStream
     * @param imgType 图片类型，ImgConstant.ImgType
     * @param fileName
     * @return
     * @throws IOException
     */
    String upload(InputStream inputStream, int imgType, String fileName)throws IOException;
}
